HCL
Skip to main content  
 
   


SPRTechnote


Using a Fixed Length String in a Function or Method Causes Notes to Crash

Technote Number: 1097988


Problem:
The issue, as it occurs with the IsNumeric function, was reported to Lotus
Quality Engineering in SPR #CDCO4A3NJ5 and has been addressed in Notes 5.0.3.

Excerpt from the Lotus Notes and Lotus Domino Release 5.0.3 QMR fix list:

LotusScript

SPR# CDCO4A3NJ5 - Fix a crash when IsNumeric is applied to a fixed length
string. [5.0.3]

This issue, as it occurs with the following methods of the NotesView class:
GetDocumentByKey, GetAllDocumentsByKey, GetEntryByKey, GetAllEntriesByKey, was
reported to Lotus Quality Engineering in the Software Problem Report MGAN4GHSNL
and has been resolved in Notes Domino 5.0.10 and Notes Domino 6.0. Using a
fixed length string as a parameter in the noted methods will now return the
following error message:

"Fixed string argument not allowed."

Note: Given that the noted methods have never properly worked using a fixed
string argument, no loss in funcationality has resulted by disallowing their
use starting in Notes Domino 5.0.10 and 6.0.
Supporting Information:

GetAllDocumentsByKey Method Code Sample:

The following code sample illustrates this issue with the GetAllDocumentsByKey
method.

Dim s As New notessession
Dim db As notesdatabase
Dim dc As notesdocumentcollection
Dim view As notesview
Dim doc As notesdocument

Set db = s.currentdatabase
Set view=db.getview("TestView")

Dim keystring As String * 8
keystring = "testtext"
Set dc=view.getalldocumentsbykey(keystring)
Related Documents:

More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact